#include<iostream>
#include<cstring>

using namespace std;
unsigned long long   a[1001];
unsigned long long   a2[1001];


void yanghui()
{
	int  n;
	cin >> n;
	for (int i=1;i<=n;i++)
	{
		for (int j=1;j<=i;j++)
		{
			unsigned long long x = 1; 
			if (j>1 && j<i)
			{
				x = a[j-1] + a[j];
			}
			else 
			{
				x = 1;
			}
			a2[j] = x;
			cout << x%4294967296 << " ";
			
		}
		for (int j=1;j<=i;j++)
		{  
			a[j] = a2[j] ; 
		} 
		cout << endl;
	}	
}

int main()
{
	yanghui();
	return 0;	
} 
